<?php 
/**
* @orm tableName domarparsertest
* @orm listener afterInsert afterInsert
* @orm index(number,number2)
* @orm unique(number,number3)
*/
class DomArParserTest extends DomArObject {
	
	/**
	* @orm text
	*/
	public $name;
	
	/**
	* @orm text
	*/
	public $title = 'default title';
	
	/**
	* @orm int(11)
	* @orm listener beforeUpdate beforeSaveB
	*/
	public $number = 5;
	
	/**
	 * @orm int(11)
	 */
	public $number2;
	
	/**
	 * @orm int(11)
	 */
	public $number3;
	
	public $justProperty = 0;
	
	public function construct( $name ) {
		$this->name = $name;
	}
	
	public function test() {
		return 'Test';
	}
	
	/**
	* @orm access record
	*/
	public function beforeSaveB() {
	
	}
	
	public function afterInsert() {
	
	}
}



class DomArParserExtendedTest extends DomArParserTest {

	public function test() {
		return 'Extended';
	}
	
}

class DomArParserMoreExtendedTest extends DomArParserExtendedTest {

	/**
	* @orm int(11)
	*/
	public $secondNumber;
	
	
	public function construct( $name, $secondNumber = 10 ) {
		parent::construct( $name );	
		$this->secondNumber = $secondNumber;
	}
	
	public function test() {
		return 'MoreExtended';
	}
	
}
?>